package com.leadnews.mapper;

import com.leadnews.pojo.ChatgptFrom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 自己
* @description 针对表【chatgpt_from】的数据库操作Mapper
* @createDate 2023-03-01 06:46:26
* @Entity com.leadnews.pojo.ChatgptFrom
*/
public interface ChatgptFromMapper extends BaseMapper<ChatgptFrom> {
@Select("select * from chatgpt_from f,(SELECT access_key FROM chatgpt_key where useful='true') k where f.from_where=#{from}")
List<ChatgptFrom> findFrom(String from);
}




